package cn.funeralobjects.upms.controller.converter;

import cn.funeralobjects.upm.web.model.VUserCertificate;
import cn.funeralobjects.upms.entity.EUserCertificate;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author FuneralObjects
 * Create date: 2020/6/3 3:46 PM
 */
@Mapper(componentModel = "spring")
public interface UserCertificateMapper {

    @Mappings({
            @Mapping(target = "userId", source = "user.id")
    })
    VUserCertificate toVo(EUserCertificate entity);
}
